package com.jumi.microservice.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.additional.query.impl.LambdaQueryChainWrapper;
import com.jumi.microservice.entity.JmLogout;
import com.jumi.microservice.entity.JmUser;
import com.jumi.microservice.mapper.JmLogoutMapper;
import com.jumi.microservice.service.IJmLogoutService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jumi.microservice.service.PageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 要挑客户管理团队
 * @since 2020-08-03
 */
@Service
public class JmLogoutServiceImpl extends ServiceImpl<JmLogoutMapper, JmLogout> implements IJmLogoutService {

    @Autowired
    JmLogoutMapper mapper;

    @Override
    public Page getPage(Page page, Wrapper wrapper) {
        return mapper.getPage(page,wrapper);
    }

    @Override
    public JmLogout getLogOutByUid(Integer uid) {
        QueryWrapper wrapper=new QueryWrapper();
        wrapper.eq("uid",uid);
        return getOne(wrapper);
    }
}
